﻿<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<c:if test="${empty sessionScope.loginUser }">
	<c:redirect url="login.html"></c:redirect>
</c:if>
<!DOCTYPE html>
<html lang="zh">
	<head>
		<meta http-equiv="content-type" content="text/html; charset=UTF-8">
		<meta charset="utf-8">
		<title>更新账户信息</title>
		<meta name="generator" content="Bootply" />
		<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
		<link href="css/bootstrap.min.css" rel="stylesheet">
		<!--[if lt IE 9]>
			<script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script>
		<![endif]-->
		<style type="text/css">
		.modal-footer {   border-top: 0px; }
		.page-header {
   			 padding-bottom: 9px;
   			 margin: 80px 0 20px;
   		 border-bottom: 1px solid #eee;
		}
		</style>
	</head>
	<body>
	<div id="wrap">
	<jsp:include page="navbar.jsp" ></jsp:include>
	<div class="container">
    <div class="page-header">
       <h1>更新账户信息：${loginUser.userName }</h1>
    </div>
<form class="form col-md-12 center-block" enctype="multipart/form-data" action="updateUser.do" method="post"><!-- enctype="application/x-www-form-urlencoded" -->
             <input type="hidden" name="id" value="${sessionScope.loginUser.id }">
            <div class="form-group">
            <label>真实姓名</label>
              <input type="text" name="realName" class="form-control input-lg" value="${sessionScope.loginUser.realName }">
            </div>
            <div class="form-group">
            <label>电子邮件</label>
              <input type="text" name="email" class="form-control input-lg" value="${sessionScope.loginUser.email }">
            </div>
            <div class="form-group">
            <label>手机号码</label>
              <input type="text" name="cellphone" class="form-control input-lg" value="${sessionScope.loginUser.cellphone }">
            </div>
            <div class="form-group">
            <label>家庭地址</label>
              <input type="text" name="address" class="form-control input-lg" value="${sessionScope.loginUser.address }">
            </div>
           
 			<div class="form-group">
            <label>头像</label>
              <input type="file" name="headPhoto" class="form-control" placeholder="选择头像文件">
            </div>
         <div class="btn-group pull-right">
          <button class="submit btn btn-primary">更新</button>
		  </div>	
          </form> 	
  </div>
 
</div>
	<div id="footer">
  <div class="container">
    <p class="text-muted credit">网站访问次数：</p>
  </div>
</div>
	<!-- script references -->
		<script type='text/javascript' src="js/jquery-1.9.1.min.js"></script>
        <script type='text/javascript' src="js/bootstrap.min.js"></script>

	</body>
</html>